package com.mas.resource;

/**
 * 
 * @author Dudi & Efi
 * 
 */
public class ResourceInfo {

	private String resourceName;

	private double resourceCurrentUsage;

	private double price;
	
	private double requiredUsage;

	/**
	 * @return the resourceName
	 */
	public String getResourceName() {
		return resourceName;
	}

	/**
	 * @param resourceName
	 *            the resourceName to set
	 */
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	/**
	 * @return the resourceCurrentUsage
	 */
	public double getResourceCurrentUsage() {
		return resourceCurrentUsage;
	}

	/**
	 * @param resourceCurrentUsage
	 *            the resourceCurrentUsage to set
	 */
	public void setResourceCurrentUsage(double resourceCurrentUsage) {
		this.resourceCurrentUsage = resourceCurrentUsage;
	}

	/**
	 * @return the requiredUsage
	 */
	public double getRequiredUsage() {
		return requiredUsage;
	}

	/**
	 * @param requiredUsage
	 *            the requiredUsage to set
	 */
	public void setRequiredUsage(double requiredUsage) {
		this.requiredUsage = requiredUsage;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getPrice() {
		return price;
	}

	/**
	 * toString method: creates a String representation of the object
	 * 
	 * @return the String representation
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		String EOL = "\n";
		buffer.append("ResourceInfo[");
		buffer.append("resourceName = ").append(resourceName).append(EOL);
		buffer.append("resourceCurrentUsage = ").append(resourceCurrentUsage)
				.append(EOL);
		buffer.append("price = ").append(price).append(EOL);
		buffer.append("requiredUsage = ").append(requiredUsage).append(EOL);
		buffer.append("]");
		return buffer.toString();
	}

}
